package com.itheima.loop;
//课后练习题
public class Demo2 {
    public static void main(String[] args) {
    //输出100以内被6整除的数字，每5个换一行

        int count = 0;
        for (int i = 1; i <= 100 ; i++) {
            if(i % 6 == 0){
                System.out.print(i);
                System.out.print("\t");
                count++;
                if(count % 5 == 0){
                    System.out.println();
                }
            }
        }
    }
}
